package com.heer.gymnasium.module.card.beans;

import com.zhihuiyun.library.commonadapter.QuickInterface;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yan on 2018/1/22.
 * 我的卡包实体类
 */

public class MyCardBean {

    private String stadium_name;
    private String stime;
    private String etime;
    private String order_id;
    private String card_id;
    private String card_cat_name;
    private String show_name;
    //卡类型 11:订场，12：分享获得的订场券，21:购卡，31:充值，41：私教
    private String type;
    //    1:可用，2:过期
    private String status;
    private String card_no;
    private String ticket_name;
    private String price;
    private String expire;
    private String num;
    private String is_current;
    private String sid;
    private List<Stadium.Tag> stadium_list;

    public String getStadium_name() {
        return stadium_name;
    }

    public void setStadium_name(String stadium_name) {
        this.stadium_name = stadium_name;
    }

    public String getStime() {
        return stime;
    }

    public void setStime(String stime) {
        this.stime = stime;
    }

    public String getEtime() {
        return etime;
    }

    public void setEtime(String etime) {
        this.etime = etime;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getCard_id() {
        return card_id;
    }

    public void setCard_id(String card_id) {
        this.card_id = card_id;
    }

    public String getCard_cat_name() {
        return card_cat_name;
    }

    public void setCard_cat_name(String card_cat_name) {
        this.card_cat_name = card_cat_name;
    }

    public String getShow_name() {
        return show_name;
    }

    public void setShow_name(String show_name) {
        this.show_name = show_name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCard_no() {
        return card_no;
    }

    public void setCard_no(String card_no) {
        this.card_no = card_no;
    }

    public String getTicket_name() {
        return ticket_name;
    }

    public void setTicket_name(String ticket_name) {
        this.ticket_name = ticket_name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getExpire() {
        return expire;
    }

    public void setExpire(String expire) {
        this.expire = expire;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getIs_current() {
        return is_current;
    }

    public void setIs_current(String is_current) {
        this.is_current = is_current;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public List<Stadium.Tag> getStadium_list() {
        return stadium_list;
    }

    public void setStadium_list(List<Stadium.Tag> stadium_list) {
        this.stadium_list = stadium_list;
    }

    public static List<MyCardBean> dataChangeForBugCard(List<CardListResponseBean.Item> list) {
        List<MyCardBean> data = new ArrayList<>();
        if (list == null) {
            return data;
        }
        for (int i = 0; i < list.size(); i++) {
            CardListResponseBean.Item item = list.get(i);
            MyCardBean bean = new MyCardBean();
            bean.setCard_id(item.getCard_id());
            bean.setCard_no(item.getCard_no());
            bean.setShow_name(item.getTicket_name());
            if (item.getIs_current().equals("1")) {
                bean.setCard_cat_name("通用卡");
            } else {
                bean.setCard_cat_name(item.getCat_name());
            }
            bean.setNum(item.getNum());
            bean.setIs_current(item.getIs_current());
            bean.setPrice(item.getPrice());
            bean.setStadium_name(item.getStadiumname());
            bean.setSid(item.getSid());
            bean.setStadium_list(item.getStadium_list());
            bean.setExpire(item.getExpire());
            data.add(bean);
        }
        return data;
    }

    public class Stadium {
        public class Tag {
            private String stadiumname;
            private String[] place;
            private String status;

            public String getStadiumname() {
                return stadiumname;
            }

            public void setStadiumname(String stadiumname) {
                this.stadiumname = stadiumname;
            }

            public String[] getPlace() {
                return place;
            }

            public void setPlace(String[] place) {
                this.place = place;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }
        }
    }
}
